package com.sqin.taskflow.service.impl;

import com.sqin.taskflow.base.service.impl.BaseServiceImpl;
import com.sqin.taskflow.mapper.ProcessRecordMapper;
import com.sqin.taskflow.model.ProcessRecord;
import com.sqin.taskflow.service.ProcessRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description:
 * @author: fengli
 * @date: 2020/8/14 3:46 下午
 */
@Service
public class ProcessRecordServiceImpl extends BaseServiceImpl<ProcessRecordMapper, ProcessRecord, Integer> implements ProcessRecordService {

    @Resource
    private ProcessRecordMapper processRecordMapper;

    @Override
    public void updateById(ProcessRecord processRecord) {
        processRecordMapper.updateByPrimaryKey(processRecord);
    }

    @Override
    public ProcessRecord selectOneByProcId(String procId) {
        return processRecordMapper.selectByProcId(procId);
    }
}
